package gameUi.panel
{
	import flash.events.MouseEvent;

	public class IsumPanel extends IsumPanelMC
	{
		/**
		 * 询问是否买保险框
		 **/
		public function IsumPanel()
		{
			cmdYes.addEventListener(MouseEvent.CLICK,clickCmdYes);
			cmdNo.addEventListener(MouseEvent.CLICK,clickCmdNo);
//			BlackJack._stage.addEventListener(MouseEvent.CLICK,closeThis);
		}
//		
//		private function closeThis(e:MouseEvent):void{
//			BlackJack._gameUi.closeIsumPanel();
//		}
		
		//点击是
		private function clickCmdYes(e:MouseEvent):void{
			BlackJack._gameUi.bayIsume();
			BlackJack._gameUi.closeIsumPanel();
//			BlackJack._gameUi.checkCanPack();
		}
		
		//点击否
		private function clickCmdNo(e:MouseEvent):void{
			BlackJack._gameUi.notBayIsume();
			BlackJack._gameUi.closeIsumPanel();
//			BlackJack._gameUi.checkCanPack();
		}
	}
}